<?php

/*
 * This is to insert data for new device.
 */
include '../../include/config.php';
mysql_query("insert into me_user_device (`sr`,`uid`,`location`,`name`,`description`) values (NULL,'".$_COOKIE['gid']."','".$_POST['location']."','".$_POST['name']."','".$_POST['description']."') ") or die(mysql_error()) ;
header('Location:../view/Device');
?>
